import base64
import os
str = 'ob6y+sa3vrvWtaG/X8enu92549OvMbrFy73EvNakyK/NttfKu/m98F8yMDIzLTA4LTA3Lnhsc3g='
str1 = "=?GB2312?B?ob6y+sa3vrvWtaG/X8enu92549OvMbrFy73EvNakyK/NttfKu/m98F8yMDIzLTA4LTA3Lnhsc3g=?="
str_list = str1.split('?')
#
#
print(base64.b64decode(str).decode('gb2312'))

# path= 'C:/Users/summit/Desktop/广发/广发'
#
# files= os.listdir(path)
# s = []
# for file in files: #遍历文件夹
#     path1 = path+"/"+file
#     files1 = os.listdir(path1)
#     for file1 in files1:
#         path2 = path1+"/"+file1
#         files2 = os.listdir(path2)
#         for file2 in files2:
#             s.append(path2+"/"+file2)
#
# # if not os.path.isdir(file): #判断是否是文件夹，不是文件夹才打开
# #         f = open(path+"/"+file); #打开文件
# #         iter_f = iter(f); #创建迭代器
# #         str = ""
# #         for line in iter_f: #遍历文件，一行行遍历，读取文本
# #             str = str + line
# #         s.append(str) #每个文件的文本存到list中
# print(s)